<template>
	<view class="nodata">
		<image class="nodata_img" :src="baseUrl + '/static/image/noData1.png'" mode="aspectFill"></image>
		<text class="nodata_tit">数据加载中...</text>
	</view>
</template>

<script>
	import {
		settledDetails
	} from "../../api/settled.js"
	export default {
		data() {
			return {
				baseUrl: this.$imageBaseUrl,
				ymDetails: {}
			}
		},
		onShow() {
			this.gettledDetails()
		},

		methods: {
			gettledDetails() {
				let data = {
					mask: 1
				}
				settledDetails(data).then(res => {
					if (res.code == 1) {
						this.ymDetails = res.data
						uni.setStorageSync('ymShopDetails', JSON.stringify(res.data))
						this.goYmRuzhu()
					} else {
						uni.$u.toast('数据异常，请稍后再试')
					}
				})
			},
			goYmRuzhu() {
				let url = ''
				if (this.ymDetails.step == '7') {
					url = '/pageYm/ymJoin/ymJoinzl'
				} else {
					url = '/pageYm/ymJoin/ymJoinIndex'
				}
				uni.redirectTo({
					url: url
				})
			},
		}
	}
</script>

<style scoped>
	/* 暂无数据 */
	.nodata {
		width: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin: 0 auto;
	}

	.nodata_img {
		width: 290rpx;
		height: 240rpx;
		margin-top: 300rpx;
	}

	.nodata_tit {
		font-size: 28rpx;
		color: #666666;
		margin-top: 30rpx;
	}
</style>